package com.oitsm.dispatcher;

import java.util.HashMap;
import java.util.Map;

public class Context {
	private Map<String,Object> attrs = null;
	
	public void add(String attrName,Object attrValue){
		if(attrs == null){
			attrs = new HashMap<String,Object>();
		}
		attrs.put(attrName, attrValue);
	}
	
	public Object get(String attrName){
		return attrs == null ? null : attrs.get(attrName);
	}
}
